<%--

    Страница выдает отчет об обеспеченности заказов товарами

--%>

<%@page contentType="text/html" pageEncoding="UTF-8" %>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Goodwill - Обеспеченность заказов товарами</title>
    <link rel="stylesheet" href="resources/css/main.css"/>
    <link rel="stylesheet" href="resources/css/stylesheet.css"/>
    <script type="text/javascript" src="resources/js/prototype.js"></script>
    <script type="text/javascript" src="resources/js/goodwill.js"></script>
</head>

<body>
<f:view>
    <jsp:include page="menu.jsp"/>
    <jsp:include page="status.jsp"/>

    <h:dataTable value="#{ReportsBean.restsOndOrdersItems}" var="error" style="border:1px solid black;margin:10px;" cellspacing="5">
        <h:column>
            <f:facet name="header">
                <h:outputText value="Код"/>
            </f:facet>
            <h:outputText value="#{error.goodCode}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <h:outputText value="Наименование"/>
            </f:facet>
            <h:outputText value="#{error.goodName}"/>
        </h:column>

        <h:column>
            <f:facet name="header">
                <h:outputText value="На складе"/>
            </f:facet>
            <h:outputText value="#{error.freeCount}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <h:outputText value="Зарезервировано"/>
            </f:facet>
            <h:outputText value="#{error.reservedCount}"/>
        </h:column>
        <h:column>
            <f:facet name="header">
                <h:outputText value="В заказах"/>
            </f:facet>
            <h:outputText value="#{error.buzyCount}"/>
        </h:column>
    </h:dataTable>
</f:view>
</body>
</html>
